package pl.edu.pb.wi.cookbook.form;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

public class NewCookbookForm {
    @NotNull(message = "Wypełnij pole.")
    @Size(min = 4, max = 60, message = "Minimum 4 oraz maksimum 60 znaków.")
    private String name;
    @NotNull(message = "Wypełnij pole.")
    @Size(max = 255, message = "Opis powinien mieć maksymalnie 255 znaków.")
    private String description;
    @NotNull(message = "Wypełnij pole.")
    private Boolean isPrivate;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Boolean getIsPrivate() {
        return isPrivate;
    }

    public void setIsPrivate(Boolean isPrivate) {
        this.isPrivate = isPrivate;
    }

}
